<template>
  <!-- 台班月报 -->
  <div id="workMonthReport">
    <div class="nowTime">
      <p class="preMon" @click="preMon">❮</p>
      <div class="thisMon">
        <span v-text="ynow"></span>年 <span v-text="mnow + 1"></span> 月
      </div>
      <p class="nextMon" @click="nextMon">❯</p>
    </div>
    <table id="table" CellPadding="0" CellSpacing="0"></table>
  </div>
</template>
<script  setup lang="ts">
import * as echarts from "echarts";
import { ref, watch, nextTick, reactive, onMounted } from "vue";
let data = reactive({
  arr: {},
  newDate: "", // 当前的日期的信息
  ynow: "", // 当前的年数
  mnow: "", // 当前的月份
  dnow: "", // 当前的天数
  firstDay: "", // 第一天
  firstnow: "", // 当前的星期
  m_days: [], // 每个月的天数
  tr_str: "", // 行数
  spinShow: false,
  initCarAndRoadValue: {
    carDeviceGpsStatusRespList: [],
    roadInfoEntityList: [],
  },
  getRoadValue: null,
  obj: {
    sweeperroutingAddress: sessionStorage.getItem("sweeperroutingAddress"),
    carNum: "",
    queryDate: "",
  },
});
</script>
<style lang="less" scoped>
.workMonthReportTop {
  position: absolute;
  left: 2%;
  top: 25px;
}
.top /deep/ .road-but {
  padding: 5px 20px;
  margin-left: 15px;
  border-radius: 5px;
  border: 0;
  color: white;
  cursor: pointer;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#01befe),
    to(#2290fe)
  ) !important;
  background: linear-gradient(to bottom, #01befe 0%, #2290fe 100%);
}

.top /deep/ .ivu-input,
.top /deep/ .ivu-select-single .ivu-select-selection {
  background: #0a325a;
  border: none;
  color: white;
  box-shadow: 0px 0px 4px 1px #02a9ff inset;
}

.top /deep/ .ivu-select .ivu-select-dropdown,
.ivu-select-item,
.top /deep/ .ivu-date-picker .ivu-select-dropdown * {
  background: #0a325a;
  border: none;
  // color: #0391DC;
  color: white;
}

.top /deep/ .ivu-select-item-selected,
.ivu-select-item-selected:hover {
  background: #0a325a;
  border: none;
  color: #0391dc;
}

.demonstration {
  margin-left: 30px;
  margin-right: 10px;
  color: #2290fe;
}

#workMonthReport {
  width: 100%;
  height: 100%;
  .nowTime {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: #104984;
    padding: 5px 10px;
    font-size: 20px;
    color: white;
  }
  .thisMon {
    color: #32ffff;
    font-weight: bold;
  }
  #table {
    width: 100%;
    height: 90%;
    text-align: center;
    /deep/ tr:nth-child(1) .isRed {
      color: red;
    }
    /deep/ .xiqi {
      background: #104984;
      border: 1px solid #104984;
      line-height: 30px;
    }
    /deep/ tr td {
      width: 100px;
      color: white;
    }
    /deep/ td {
      line-height: 16px;
      > span {
        display: block;
        text-align: center;
      }
      p {
        height: 50px;
        // width: 50px;
        text-align: center;
        line-height: 50px;
      }
      dl {
        width: 94%;
        padding: 0;
        margin: 5px 10px;
        padding-left: 10px;
        font-size: 12px;
        border-left: 2px solid #3ff;
        background-color: rgba(10, 56, 88, 0.6);
        color: #3ff;

        span {
          display: inline-block;
          width: 48%;
          text-align: left;
        }
      }
    }
    /deep/ td:hover {
      background: rgba(16, 73, 132, 0.5);
    }
  }
}
</style>
